from symbide import ModuleManager, LogManager

def _Gnuplot(*args):
    if ModuleManager.hasModule('Gnuplot'):
        from gnuplot import SymbideGnuplot
        return SymbideGnuplot(*args)
    else:
        error = 'Gnuplot is not available'
        LogManager.alert(error)
        def notavailable(*args):
            raise error
        return notavailable